*{
  margin: 0;
  padding: 0;
}
body {
  background-color: black;
}     

div{
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: xx 6s ease infinite;
  position: absolute;
  text-align: center;
  line-height: 60px;
  border: 2px solid aqua; 

}
.box1{
  background-color: green;  
}
.box2{
  background-color: blue;
  animation-delay: -0.5s;
}
.box3{
  background-color: aqua;
  animation-delay: -1.0s;
}
.box4{
  background-color: coral;
  animation-delay: -1.5s;
}
@keyframes xx{
  0%{
    translate:rotate(0deg);
  }
  25%{    
    transform: rotate(-90deg);     
    margin-top: 0px;
    margin-left: 200px;
    background-color: pink; 
  }
  50%{
    margin-top: 200px;
    margin-left: 200px;
   transform: rotate(-180deg); 
    background-color:  peru;
  }
  75%{
    margin-top: 200px;
    margin-left: 0px;
    transform: rotate(-270deg); 
    background-color:  antiquewhite;
  }
  100%{
    margin-top: 0px;
    margin-left: 0px;
    transform: rotate(-360deg);      
    background-color:  blank;
    border: 2px solid buttonhighlight;
  }
}